﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Katilgan.ConsoleClient.Model;
using WebUI.DataLayer.Library;

namespace Katilgan.ConsoleClient.Service
{
    public class KisiService : BaseService<Kisi>
    {
        public List<Kisi> GetAllOrderByName()
        {
            return base.RunCommand(cmd =>
             {
                 cmd.CommandText = dbContext.GetSelectQry("KisiID", "Ad", "Soyad") + " ORDER BY Ad";
                 return dbContext.MapEntity(cmd.ExecuteReader());
             });
        }
    }
}
